package com.yishun.springboot.mapper;


import com.yishun.springboot.pojo.GwsElevatorBasicInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GwsElevatorBasicInfoMapper {

    Integer addGwsElevatorBasicInfo(@Param("elevatorBasics") List<GwsElevatorBasicInfo> elevatorBasics);

    /**
     * 查询升降梯基础信息
     *
     * @param elevatorId 塔吊编号
     */
    List<GwsElevatorBasicInfo> getGwsBasic(@Param("elevatorId") Integer elevatorId);


    /**
     * 查询升降梯参数信息
     *
     * @param elevatorId 塔吊编号
     */
    List<GwsElevatorBasicInfo> getGwsParams(@Param("elevatorId") Integer elevatorId);


    Integer updateGwsParams(GwsElevatorBasicInfo gwsParams);


    List<String> findByGwsElevatorId(@Param("gwsElevatorId") Integer gwsElevatorId);
}
